﻿using System;

namespace ServicioEvaluacion
{
	public static class FallaEvaluacion
	{
		public static string ObtenerCausa(Exception ex)
		{
			string reasonFault = string.Empty;

			if (ex.InnerException != null)
			{
				reasonFault = ex.InnerException.Message;
			}
			else
			{
				reasonFault = ex.Message;
			}
			return reasonFault;
		}
	}
}
